home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 24 / AACD 24.iso / AACD / Online / Epic4 / share / epic / help / 5_programming / on / mode < prev    next >
Encoding:
Text File  |  2001-03-21  |  695 b   |  27 lines

  1. Synopsis:
  2.    on [<modes>]mode [<serial#>] [-|^]<match> { <action> }
  3.  
  4. Description:
  5.    This hook is triggered whenever the client observes a mode change on a
  6.    channel, or whenever the client changes its modes.
  7.  
  8. Parameters:
  9.    $0    nickname of person issuing mode change
  10.    $1    channel or nickname affected by mode change
  11.    $2    modes changed
  12.    $3-   arguments to modes (if any)
  13.  
  14. Examples:
  15.    To distinguish between user modes and channel modes:
  16.       on ^mode "*" {
  17.          if ( [$1] == N ) {
  18.             echo *** User mode change for $1: $2-
  19.          } {
  20.             echo *** Mode change for $1 by $0: $2-
  21.          }
  22.       }
  23.  
  24. See Also:
  25.    mode(1); on(5) mode_stripped
  26.  
  27.